how to setup database connection in pl